package org.goobs.misc;

public class LogThread {
	private String prefix;
	private Log parent;
	private int priority;

	protected LogThread(String prefix, int priority, Log parent) {
		this.prefix = prefix;
		this.parent = parent;
		this.priority = priority;
	}

	public boolean log(Object o) {
		return parent.log(Log.now() + " (" + Log.thread() + ") " + prefix + o, priority);
	}
	
	public void setLevel(int priority){
		this.priority = priority;
	}
}
